package org.budo.support.java.collection.wrapper;

import java.util.Arrays;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 包裝 toString 方法
 * 
 * @author lmw
 */
@Getter
@Setter
@NoArgsConstructor
public class ArrayWrapper {
    private Object[] array;

    public ArrayWrapper(Object[] array) {
        this.array = array;
    }

    @Override
    public String toString() {
        if (null == this.array) {
            return null;
        }

        return Arrays.toString(this.array);
    }
}